<html>
<head><meta charset="utf-8"><title>Testing tool suggestions · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Testing.20tool.20suggestions.html">Testing tool suggestions</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="245646481"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Testing%20tool%20suggestions/near/245646481" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jacob Pratt <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Testing.20tool.20suggestions.html#245646481">(Jul 12 2021 at 05:23)</a>:</h4>
<p>What's the typical way to test tool-only suggestions? Inspecting the output of a suggestion (by making it not tool-only) only goes so far.</p>



<a name="245648800"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Testing%20tool%20suggestions/near/245648800" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Testing.20tool.20suggestions.html#245648800">(Jul 12 2021 at 06:13)</a>:</h4>
<p>I guess you could check the json error messages.</p>



<a name="245648899"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Testing%20tool%20suggestions/near/245648899" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jacob Pratt <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Testing.20tool.20suggestions.html#245648899">(Jul 12 2021 at 06:15)</a>:</h4>
<p>Probably not an easy way to play around with it in rust-analyzer?</p>



<a name="245676454"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Testing%20tool%20suggestions/near/245676454" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Testing.20tool.20suggestions.html#245676454">(Jul 12 2021 at 12:04)</a>:</h4>
<p><span class="user-mention" data-user-id="245610">@Jacob Pratt</span> I think you want // run-rustfix in a UI test</p>



<a name="245694744"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Testing%20tool%20suggestions/near/245694744" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jacob Pratt <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Testing.20tool.20suggestions.html#245694744">(Jul 12 2021 at 14:36)</a>:</h4>
<p>That would only work for the "always applicable" suggestions, which these are not.</p>



<a name="245711493"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Testing%20tool%20suggestions/near/245711493" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Testing.20tool.20suggestions.html#245711493">(Jul 12 2021 at 16:27)</a>:</h4>
<p>If it's not always applicable, why test it?</p>



<a name="245717843"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Testing%20tool%20suggestions/near/245717843" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jacob Pratt <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Testing.20tool.20suggestions.html#245717843">(Jul 12 2021 at 17:18)</a>:</h4>
<p>I want to make sure my implementation is actually valid and what I intended. When I say test I don't necessarily mean an automated test — I want to actually interact with it or something of the sort. Hence my reference to rust-analyzer.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>